using System.Xml.XPath;

namespace CriticalSystems.Instrumentation.TraceWriters
{
    /// <summary>
    /// Factory for constructing a <see cref="SystemDiagnosticTraceWriter"/>
    /// </summary>
    public class SystemDiagnosticTraceWriterFactory : ITraceWriterFactory
    {
        #region ITraceWriterFactory Members
        /// <summary>
        /// Creates the trace writer using the supplied XML settings.
        /// </summary>
        /// <param name="fullTypeName">Full name of the type.</param>
        /// <param name="settings">The configuration settings.</param>
        /// <returns></returns>
        public ITraceWriter Create(string fullTypeName, IXPathNavigable settings)
        {
            return new SystemDiagnosticTraceWriter();
        }
        #endregion
    }
}